package com.aaa.backsystem.service.impl;

import com.aaa.backsystem.dao.StaffDao;
import com.aaa.backsystem.entity.Staff;
import com.aaa.backsystem.entity.StaffVo;
import com.aaa.backsystem.service.StaffService;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author gyc
 * @since 2020-07-25
 */
@Service
public class StaffServiceImpl extends ServiceImpl<StaffDao, Staff> implements StaffService {

    @Autowired
    private StaffDao staffDao;

    @Override
    public List<StaffVo> findAllStaffListAndDeptName(Page<StaffVo> pageInfo, Map<String, Object> condition) {
        return staffDao.findAllStaffListAndDeptName(pageInfo,condition);
    }
}
